﻿using WH.Model.OrgContext;
using WH.Model.Systems;
using WH.Repositories.BaseRepositories;
using WH.Repositories.IRepositories.ISystem;
using SqlSugar;

namespace WH.Repositories.Repositories.System
{
    public class RoleRepository : BaseRepository<RoleEntity>, IRoleRepository
    {
        protected override ISugarQueryable<RoleEntity> Query
        {
            get
            {
                return base.Query.Includes(x => x.RoleType);
            }
        }

        public RoleRepository(ISqlSugarClient dbContext, OrganizationContext organizationContext) : base(dbContext, organizationContext)
        {
        }
    }
}
